package LocalServerProtocols;

import generalClasses.Server;

import java.io.BufferedReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintWriter;

public abstract class localServerProtocol
{
	/** The other side response to my action*/
	protected String _serverResponse;
	/** An object to store the local server details */
	protected Server _serverDetails;
	
	protected String _firstDesieredServerRespose;
	protected String _secondDesieredServerRespose;
	protected String _protocolAction; 
	
	/**
	* @oos - An ObjectOutputStream object to write object to other side
	* @out - A PrintWriter object to write text message to other side
	* @in - A BufferedReader object to read input from console
	* @action - The action to perform (Authenticate etc...)
	*/ 
	public abstract Object exec(ObjectOutputStream oos, PrintWriter out,
			BufferedReader in, ObjectInputStream ois, String action);

	/**
	 * @return the _protocolAction
	 */
	public String get_protocolAction()
	{
		return _protocolAction;
	}

}
